<?php

/**
 * @author Tongle Xu <xutongle@gmail.com>
 * @copyright Copyright (c) 2003-2103 Jinan TintSoft development co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id$
 */
namespace Leaps\Base;

/**
 * ViewContextInterface is the interface that should implemented by classes who
 * want to support relative view names.
 *
 * The method [[findViewFile()]] should be implemented to convert a relative
 * view name into a file path.
 *
 * @author Tongle Xu <xutongle@gmail.com>
 * @since 4.0
 */
interface ViewContextInterface {

	/**
	 * 找到视图名称所指定的视图文件
	 *
	 * @param string $view a relative view name. The name does NOT start with a
	 *        	slash.
	 * @return string the view file path. Note that the file may not exist.
	 */
	public function findViewFile($view);
}
